<template>
    <div class="transit">
        <!--文字排序题-->
        <wenZhiPaiXu :Questions="Questions" :defAnswer="reSetDefAnswer" v-if="Questions.QuestionTypeCode=='QUE0138'"></wenZhiPaiXu>
        <!--图片排序题-->
        <tuPianPaiXu :Questions="Questions" :defAnswer="reSetDefAnswer" v-if="Questions.QuestionTypeCode=='QUE0139'"></tuPianPaiXu>
        <!--单选题-->
        <danXuan :Questions="Questions" :defAnswer="reSetDefAnswer" v-if="Questions.QuestionTypeCode=='QUE0020'"></danXuan>
        <!--判断题-->
        <panDuan :Questions="Questions" :defAnswer="reSetDefAnswer" v-if="Questions.QuestionTypeCode=='QUE0142'"></panDuan>
        <!--多选题-->
        <duoXuan :Questions="Questions" :defAnswer="reSetDefAnswer" v-if="Questions.QuestionTypeCode=='QUE0037'"></duoXuan>
        <!--主观题-->
        <zhuGuan :Questions="Questions" :defAnswer="reSetDefAnswer" v-if="Questions.QuestionTypeCode=='QUE0042'"></zhuGuan>
        <!--归类题-->
        <guiLei :Questions="Questions" :defAnswer="reSetDefAnswer" v-if="Questions.QuestionTypeCode=='QUE0049'"></guiLei>
        <!--文字连线题-->
        <!--图片连线题-->
        <lianXian :Questions="Questions" :defAnswer="reSetDefAnswer" v-if="Questions.QuestionTypeCode=='QUE0141' || Questions.QuestionTypeCode=='QUE0140'"></lianXian>
    </div>
</template>
<script type="text/ecmascript-6">
import wenZhiPaiXu from './wenZhiPaiXu.vue'
import tuPianPaiXu from './tuPianPaiXu.vue'
import danXuan from './danXuan.vue'
import panDuan from './panDuan.vue'
import duoXuan from './duoXuan.vue'
import zhuGuan from './zhuGuan.vue'
import guiLei from './guiLei.vue'
import lianXian from './lianXian.vue'

export default {
    name: "transit",
    props: ['Questions','defAnswer'],
    data() {
         var _this = this;
        return {
                reSetDefAnswer: new _this.getDefAnswer()
            }
    },
    methods: {
        getDefAnswer(){
             var _this = this;
            return {
                ExamID:_this.defAnswer.ExamID,
                LessionID:_this.defAnswer.LessionID,
                TeacherID:_this.defAnswer.TeacherID,
                TestID:_this.Questions.child.stem[0].TestID,
                StemID:_this.Questions.child.stem[0].ID,
                CorrectAnswer :_this.Questions.child.stem[0].CorrectAnswer,
                AnswerTimeJsCut : new Date().getTime(),
                Answer : '',
                StudentID : _this.$store.state.userInfo.ID,
                QuestionTypeCode : _this.Questions.child.stem[0].QuestionTypeCode
            }
        }
    },
    mutated: {},
    components: {
        wenZhiPaiXu,
        danXuan,
        panDuan,
        duoXuan,
        zhuGuan,
        guiLei,
        tuPianPaiXu,
        lianXian
    },mounted(){
        
    }
}
</script>

<style lang="scss" rel="stylesheet/scss">
.transit .divTitle {
    display: none;
}

.transit .shiti .tigan {
    height: 80px !important;
}
</style>
